package com.kerrykidz.filemanagement.service;

import java.io.IOException;
import java.util.Date;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.ibatis.annotations.Param;

import com.kerrykidz.dao.model.LocPerInoutEntity;
import com.kerrykidz.membership.dao.model.CusGuaEntity;
import com.rdp.framework.core.model.MyBatisSuperModel;
import com.rdp.framework.exception.RDPException;

/**
 * 现场管理接口
 * @author YJJ
 *
 */
public interface ISiteService {

	/**
	 * 获取进出场记录
	 * @return
	 */
	public List<LocPerInoutEntity> getAllPerInOut(MyBatisSuperModel model);
	
	/**
	 * 保存实体
	 * @return
	 */
	public String insertLocPerInOut(HttpServletRequest request, String inMemberIds, String inGuaIds, String receivePwds, String type, String saleId, String userId, String branId, String abbrCode, String familyId) throws RDPException, Exception;
	
	/**
	 * 更新实体
	 * @return
	 */
	public String updateLocPerInOut(HttpServletRequest request, String inMemberIds, String inGuaIds)throws RDPException, IOException, InterruptedException;
	
	/**
	 * 获取场内监护人
	 */
	public List<CusGuaEntity> getCusGuaList(@Param("familyId") String familyId) throws RDPException;
	
	/**
	 * 获取场内监护人
	 */
	public List<LocPerInoutEntity> getLocPerInOutByMemId(@Param("memberId") String memberId) throws RDPException;
	
	/**
	 * 根据会员编号修改玩伴券
	 * @param fkMemId:会员Id
	 * @return
	 */
	public void updateCouponBymemId(@Param("fkMemId") String fkMemId, @Param("validFrom") Date validFrom, @Param("validTo") Date validTo) throws RDPException;
}
